using System;
using System.Collections.Generic;
using System.Web.UI;
using Framework.Library.Base.Extensions;
using Framework.Library.Core.Config;
using Framework.Library.Data.DAL;
using Framework.Library.Data.DAO;

namespace Framework.Portal.Layouts.Admin.Modules.Menus
{
    public partial class ClientMenu : UserControl
    {
        private Configurations cfg = new Configurations();
        private int portalid;

        protected void Page_Load(object sender, EventArgs e)
        {
            LoadMenu();
        }

        private void LoadMenu()
        {
            //
            List<PortalMenu> dtCommands = ManagerFactory.PortalMenuManager.GetAll(Session.WorkingPortal().PORTALID);
            if (dtCommands != null)
                ucMainMenu.DataSource = dtCommands;
        }
    }
}